<?php
	$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';  
 	if(strpos($user_agent, 'Opera') !== false)   
    	$browser = 'Opera';
	elseif( strpos( $user_agent, 'AppleWebKit' ) !== false )
		$browser = 'Safari';
 	elseif(strpos($user_agent, 'MSIE') !== false)  
    	$browser = 'IE'; 
	elseif(strpos($user_agent, 'Gecko') !== false)  
    	$browser = 'Firefox';
 	else  
    	$browser = 'Other';
 ?> 